package com.zhl.controller;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/** 
* @author 朱宏亮
* @version 创建时间：2018年1月10日 上午10:27:59 
* 类说明 
*/
@Controller
@RequestMapping("")
public class Index {
    
    @RequestMapping("")
    public void a(HttpServletRequest req,HttpServletResponse response) throws IOException{
        System.out.println("nice");
        response.setContentType("text/html;charset=UTF-8");
        response.setCharacterEncoding("UTF-8");
        response.getWriter().print("it is ok");
    }
}
 